import 'package:dio/dio.dart';
import 'package:ugrownews_flutter/utils/netutil/NetUtil.dart';

class LoginNetUtil extends NetUtil {
  final String _LOGIN_USERNAME = "/login";

  void loginGet(
      Map<String, String> params, Function(String) stringCallBack) async {
    try {
      Response response;
      response = await Dio().get(_LOGIN_USERNAME);
      stringCallBack(response.toString());
    } catch (e) {
      return print(e);
    }
  }
}
